package com.zgz.underwrite.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 核保结果
 * @author zgz
 *
 */
public class UnderwriteResultDTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5512672797635619916L;

	private List<String> passedReason = new ArrayList<String>();//自动核保通过原因
	private List<String> notPassedReason = new ArrayList<String>();//自动核保不通过原因
	private Map<String, String> levelResult  = new HashMap<String, String>();//核保权限
	private Map<String, Double> premiumMap = new HashMap<String,Double>();//保费
	
	public void putRate(String cvrgNo,Double rate){
		this.premiumMap.put(cvrgNo, rate);
	}
	
	public Map<String, Double> getPremiumMap(){
		return this.premiumMap;
	}
	
	public void addPassedReason(String reason){
		this.passedReason.add(reason);
	}
	
	public void addNoPassedReason(String reason){
		this.notPassedReason.add(reason);
	}
	
	public void putLevelResult(String cvrgNo,String level){
		this.levelResult.put(cvrgNo, level);
	}

	public List<String> getPassedReason() {
		return passedReason;
	}

	public void setPassedReason(List<String> passedReason) {
		this.passedReason = passedReason;
	}

	public List<String> getNotPassedReason() {
		return notPassedReason;
	}

	public void setNotPassedReason(List<String> notPassedReason) {
		this.notPassedReason = notPassedReason;
	}

	public Map<String, String> getLevelResult() {
		return levelResult;
	}

	public void setLevelResult(Map<String, String> levelResult) {
		this.levelResult = levelResult;
	}

}
